<?php
$yhendus=new mysqli("localhost", "if13", "ifikad", "if13_vaarius1");
$kask=$yhendus->prepare("SELECT id, kassinimi, toon FROM kassid");
$kask->bind_result($id, $kassinimi, $toon);
$kask->execute();
?>
<!doctype html>
<html>
	<head>
		<title style='color: red'>Kassid ja Värgid</title>
	</head>
	<body>
     <h1>Hästi palju kasse</h1>
	<?php
		while($kask->fetch()){
			echo "<h2 style='color: $toon'>$kassinimi</h2>";
		}
		$yhendus->close();
	?>
	</body>
</html>